﻿namespace GoodAdmin.System;
public class OrgAddInput:SysOrg
{
    /// <summary>
    /// 名称
    /// </summary>
    [Required(ErrorMessage = "组织名称不能为空")]
    public override string OrgName { get; set; }
}
public class OrgUpdateInput: OrgAddInput
{
    [Required(ErrorMessage = "Id不能为空")]
    public override long Id { get; set; }
}

public class OrgPageInput:BasePageInput
{
    public long ParentId { get; set; }

    public string OrgName { get; set; }

    public string Category { get; set; }
}

public class OrgBatchAdd
{
    /// <summary>
    /// 组织名称
    /// </summary>
    [Display(Name = "*组织名称")]
    [Required(ErrorMessage = "组织名称不能为空")]
    public string LongName { get; set; }

    /// <summary>
    /// 组织编码
    /// </summary>
    [Display(Name = "*组织编码")]
    [Required(ErrorMessage = "组织编码不能为空")]
    public string Code { get; set; }

    /// <summary>
    /// 组织类型
    /// </summary>
    [Display(Name = "组织类型")]
    public string Category { get; set; }
}


